import {Component, Input, OnInit} from '@angular/core';
import * as echarts from 'echarts';
import {ContentService} from '../content.service';
import {objectKeys} from 'codelyzer/util/objectKeys';
import _ from 'lodash';
import {timer} from 'rxjs';

@Component({
  selector: 'app-quarter-keyword-bar',
  templateUrl: './quarter-keyword-bar.component.html',
  styleUrls: ['./quarter-keyword-bar.component.less']
})
export class QuarterKeywordBarComponent implements OnInit {
  @Input() heightCount: string;
  labelOption = {
    show: true,
    rotate: 90,
    align: 'left',
    verticalAlign: 'middle',
    position: 'insideBottom',
    formatter(params) {
      if (!params.value) {
        return '';
      }
      return params.name + ': ' + params.value;
    },
    distance: 12,
    fontSize: 14,
  };
  yearList = [];
  isSpinning = false;
  keywordValue = [];
  topKeyword = [];
  yearSelected: string;
  topKeywordList: any;
  selectedTab = 0;

  constructor(private cService: ContentService) {
  }

  ngOnInit(): void {
    this.getTopKeyword();
  }

  getTopKeyword() {
    this.isSpinning = true;

    // 1217.临时缓存
    timer(100).subscribe(() => {
      const res = {"code":200,"msg":"成功","result":{"2009":[[{"name":"贷款","count":68,"value":68,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":67,"value":67,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"质押贷款","count":34,"value":34,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押","count":33,"value":33,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押贷款","count":25,"value":25,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利权","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":5,"value":5,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"著作权","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[],[],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[],[]],"2019":[[{"name":"投资","count":216,"value":216,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":193,"value":193,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":132,"value":132,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":100,"value":100,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":98,"value":98,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":76,"value":76,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础研究","count":55,"value":55,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资机构","count":49,"value":49,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研院所","count":47,"value":47,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":46,"value":46,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":670,"value":670,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":253,"value":253,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":176,"value":176,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"城市更新","count":110,"value":110,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":76,"value":76,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权运营","count":75,"value":75,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"建筑面积","count":62,"value":62,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":58,"value":58,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"转让","count":49,"value":49,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业企业","count":47,"value":47,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"投资","count":230,"value":230,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":138,"value":138,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"重点实验室","count":93,"value":93,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":84,"value":84,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":72,"value":72,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":49,"value":49,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"自然科学基金","count":35,"value":35,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创新型产业用地","count":32,"value":32,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":399,"value":399,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":143,"value":143,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"成果转化","count":97,"value":97,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技成果转化","count":94,"value":94,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础研究","count":69,"value":69,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":57,"value":57,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押","count":55,"value":55,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"质押融资","count":52,"value":52,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押融资","count":49,"value":49,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":48,"value":48,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2018":[[{"name":"知识产权","count":301,"value":301,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":85,"value":85,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":63,"value":63,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":63,"value":63,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":50,"value":50,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"初创企业","count":43,"value":43,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":25,"value":25,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":24,"value":24,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权保护","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"高校","count":78,"value":78,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"成果转化","count":73,"value":73,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":66,"value":66,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":62,"value":62,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技成果转化","count":48,"value":48,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科学中心","count":34,"value":34,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"国家科学中心","count":34,"value":34,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":33,"value":33,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":32,"value":32,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":218,"value":218,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":163,"value":163,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":99,"value":99,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":78,"value":78,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":61,"value":61,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权运营","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":38,"value":38,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":28,"value":28,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科学城","count":26,"value":26,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技型企业","count":25,"value":25,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":272,"value":272,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":97,"value":97,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":84,"value":84,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":65,"value":65,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权运营","count":59,"value":59,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础研究","count":48,"value":48,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利保险","count":43,"value":43,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2017":[[{"name":"创业","count":85,"value":85,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":22,"value":22,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"成果转化","count":13,"value":13,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技成果转化","count":10,"value":10,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":10,"value":10,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":10,"value":10,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"孵化器","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研机构","count":8,"value":8,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技园","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"产学研","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"成果转化","count":115,"value":115,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技成果转化","count":109,"value":109,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"城市更新","count":89,"value":89,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":46,"value":46,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":26,"value":26,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":23,"value":23,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"旧厂房","count":23,"value":23,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科学中心","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"转让","count":17,"value":17,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"创业","count":114,"value":114,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":59,"value":59,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业企业","count":45,"value":45,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":43,"value":43,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":23,"value":23,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"协同发展","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":17,"value":17,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科学城","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":76,"value":76,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":48,"value":48,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"人才培养","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"研发用地","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"园区平台","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"转让","count":12,"value":12,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"技术开发","count":12,"value":12,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"人才计划","count":11,"value":11,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"建设用地使用权","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2016":[[{"name":"投资","count":113,"value":113,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"引导基金","count":75,"value":75,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"天使投资","count":43,"value":43,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":29,"value":29,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"天使基金","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资机构","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研机构","count":16,"value":16,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"众创空间","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"创业","count":82,"value":82,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":49,"value":49,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":44,"value":44,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":38,"value":38,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":25,"value":25,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"成果转化","count":23,"value":23,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"建设用地使用权","count":22,"value":22,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研院所","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"出让合同","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"转让","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"创业","count":187,"value":187,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":79,"value":79,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研院所","count":79,"value":79,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":66,"value":66,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":50,"value":50,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"大数据","count":44,"value":44,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":34,"value":34,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础研究","count":34,"value":34,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"成果转化","count":29,"value":29,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"新能源","count":29,"value":29,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科学城","count":55,"value":55,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础设施","count":28,"value":28,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技计划","count":23,"value":23,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"重大科技基础设施","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":13,"value":13,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研机构","count":8,"value":8,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"国家实验室","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础设施建设","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研院所","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"成果转化","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2015":[[{"name":"知识产权","count":232,"value":232,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":63,"value":63,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":32,"value":32,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":28,"value":28,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"风险补偿","count":13,"value":13,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":12,"value":12,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"投资","count":283,"value":283,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":56,"value":56,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":45,"value":45,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"天使投资","count":40,"value":40,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":38,"value":38,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":36,"value":36,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":36,"value":36,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资机构","count":31,"value":31,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":31,"value":31,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"航运","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"创业","count":148,"value":148,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":104,"value":104,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":78,"value":78,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":58,"value":58,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":45,"value":45,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":42,"value":42,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研院所","count":33,"value":33,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":33,"value":33,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科研人员","count":28,"value":28,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":27,"value":27,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":166,"value":166,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":71,"value":71,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":44,"value":44,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":35,"value":35,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":24,"value":24,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"新型产业用地","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创新型产业用地","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技型企业","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2014":[[{"name":"投资","count":11,"value":11,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"出让合同","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"土地出让金","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"公开出让","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"标准厂房","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"工业项目","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"租赁","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"考核评价","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"出让年限","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"低效用地","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"专利","count":109,"value":109,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利资助","count":12,"value":12,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利专项资金","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"技术开发","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利权","count":5,"value":5,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"集成电路布图设计","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权保护","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"集成电路","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权维权援助","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"工业项目","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"分割销售","count":16,"value":16,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"受让人","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"住房","count":5,"value":5,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"标准厂房","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"多层标准厂房","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"配套建设","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":3,"value":3,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"出让合同","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"土地出让金","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2013":[[],[{"name":"知识产权","count":72,"value":72,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":59,"value":59,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权保险","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":11,"value":11,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险机构","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技园","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技园区","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"金融机构","count":32,"value":32,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":16,"value":16,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":11,"value":11,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权投资","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":8,"value":8,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"交易所","count":6,"value":6,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权交易","count":5,"value":5,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2012":[[],[{"name":"知识产权","count":65,"value":65,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":50,"value":50,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"质押融资","count":31,"value":31,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押融资","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"再担保","count":27,"value":27,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":14,"value":14,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"企业信用","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":5,"value":5,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"再担保体系","count":4,"value":4,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":226,"value":226,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":47,"value":47,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":35,"value":35,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":33,"value":33,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":27,"value":27,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":23,"value":23,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":19,"value":19,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":17,"value":17,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":16,"value":16,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"投资","count":131,"value":131,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":71,"value":71,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":58,"value":58,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":27,"value":27,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技型企业","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高新技术企业","count":18,"value":18,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资机构","count":16,"value":16,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资机构","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2011":[[{"name":"投资","count":121,"value":121,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":108,"value":108,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":105,"value":105,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":82,"value":82,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权投资","count":68,"value":68,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":65,"value":65,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权投资基金","count":54,"value":54,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":40,"value":40,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":30,"value":30,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"拟上市企业","count":25,"value":25,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"保险","count":145,"value":145,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":133,"value":133,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":89,"value":89,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":48,"value":48,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":46,"value":46,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":39,"value":39,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权投资","count":34,"value":34,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"证券","count":32,"value":32,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"交易所","count":22,"value":22,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"创业","count":74,"value":74,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技创业","count":58,"value":58,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":31,"value":31,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业企业","count":29,"value":29,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":22,"value":22,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":14,"value":14,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":12,"value":12,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":9,"value":9,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技信贷","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"保险","count":85,"value":85,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":56,"value":56,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高新技术企业","count":29,"value":29,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":28,"value":28,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技保险","count":27,"value":27,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技创业","count":21,"value":21,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":20,"value":20,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保费补贴","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资基金","count":15,"value":15,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科技创业投资基金","count":14,"value":14,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2010":[[],[{"name":"投资","count":112,"value":112,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":71,"value":71,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"引导基金","count":69,"value":69,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资","count":66,"value":66,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资企业","count":35,"value":35,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业投资引导基金","count":10,"value":10,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基金参股","count":10,"value":10,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资引导","count":10,"value":10,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"转让","count":8,"value":8,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资机构","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"投资","count":263,"value":263,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权","count":184,"value":184,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":170,"value":170,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权投资","count":168,"value":168,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权质押","count":78,"value":78,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"股权投资基金","count":72,"value":72,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":63,"value":63,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":52,"value":52,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":42,"value":42,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":42,"value":42,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"担保","count":7,"value":7,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"政策性担保机构","count":2,"value":2,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高新技术企业","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"奖励政策","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"融资性担保支持","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"再担保体系","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"再担保","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":" “投贷联动”模式","count":0,"value":0,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"5G","count":0,"value":0,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"5G商用网络全覆盖","count":0,"value":0,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]],"2020":[[{"name":"贷款","count":480,"value":480,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":409,"value":409,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":376,"value":376,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":374,"value":374,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":262,"value":262,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":204,"value":204,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"住房","count":204,"value":204,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小微企业","count":197,"value":197,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"高校","count":181,"value":181,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":152,"value":152,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"投资","count":1083,"value":1083,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":1024,"value":1024,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":422,"value":422,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":389,"value":389,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":380,"value":380,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础设施","count":325,"value":325,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"5G","count":289,"value":289,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"大数据","count":272,"value":272,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":269,"value":269,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":229,"value":229,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"知识产权","count":769,"value":769,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"投资","count":678,"value":678,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":505,"value":505,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"创业","count":500,"value":500,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"基础设施","count":387,"value":387,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"人工智能","count":284,"value":284,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"集成电路","count":262,"value":262,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"数字化","count":240,"value":240,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"专利","count":237,"value":237,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"大数据","count":234,"value":234,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"投资","count":262,"value":262,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"中小企业","count":204,"value":204,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"绿色金融","count":192,"value":192,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"贷款","count":118,"value":118,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"上市","count":118,"value":118,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"金融机构","count":113,"value":113,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"保险","count":94,"value":94,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"担保","count":78,"value":78,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"知识产权","count":74,"value":74,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"生态环境","count":69,"value":69,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}],[{"name":"科创要素","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环境","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创主体","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null},{"name":"科创环节","count":1,"value":1,"percentage":0.0,"percentageString":"0.0%","chartCounts":null}]]},"ok":true};
      let pageSize = 10;
      // 因为echarts对数据源的格式要求，在此将数据源格式化。  --- 从 ../content.service.ts 中复制过来的。
      for (const year in res.result) {
        if (res.result.hasOwnProperty(year)) {
          const data = [];
          for (let i = 0; i < pageSize; i++) {
            const rowTemp = [];
            res.result[year].forEach((quarter: any[], index: number) => {
              rowTemp.push(quarter[i]);
            });
            data.push(rowTemp);
          }
          res.result[year] = data;
        }
      }
      console.log('[getTopKeyword]sleep');
        // 上面都是为了缓存的。

    //this.cService.getTopKeyword(10).subscribe(res => {

      this.yearList = [];
      this.topKeywordList = res.result;
      for (const year of objectKeys(res.result)) {
        this.yearList.push(year);
      }
      this.yearList = _.reverse(_.sortBy(this.yearList));

      // this.yearSelected = '2013';
      this.yearSelected = this.yearList[this.selectedTab];
      this.topKeyword = this.topKeywordList[this.yearSelected];
      this.setChartOption();
      this.isSpinning = false;
    });
  }

  tabActivated() {
    this.isSpinning = true;
    this.yearSelected = this.yearList[this.selectedTab];
    this.topKeyword = this.topKeywordList[this.yearSelected];
    this.setChartOption();
    this.isSpinning = false;
  }

  setChartOption() {
    const el = document.getElementById('keyword-bar') as HTMLDivElement;
    const myCharts = echarts.init(el);
    myCharts.resize({height: this.heightCount});
    myCharts.setOption({
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'shadow'
        },
        formatter: (params: Array<any> ) => {
          let tar = params[0].axisValueLabel + '<br/>';
          for (const item of params) {
            if (item.value === undefined) {
              return;
            }
            tar += item.marker + item.name + ': ' + item.value + '<br/>';
          }
          return tar;
        }
      },
      dataset: {},
      grid: {
        containLabel: true
      },
      legend: {},
      // title: {
      //   text: '第一季度',
      //   show: true,
      //   left: '5%',
      //   top: '5%',
      // },
      dataZoom: [
        {
          show: true,
          realtime: true,
          start: 0,
          end: 30       // 50
        },
        {
          type: 'inside',
          realtime: true,
          start: 0,
          end: 30       // 50
        }
      ],
      xAxis: {
        type: 'category',
        axisTick: {show: false},
        data: ['第一季度', '第二季度', '第三季度', '第四季度'],
      },
      yAxis: {
        type: 'value'
      },
      series: (() => {
        const series = [];
        for (let i = 1; i <= 10; i++) {
          series.push({
            type: 'bar',
            barGap: 0,
            label: this.labelOption,
            data: this.topKeyword[i - 1]
          });
        }
        return series;
      })()
    });
  }
}
